import { Sprite } from "pixi.js";
import { MapCellSize } from "../config/game-config";
import { LoaderManager } from "../util/LoaderManager";
export var CellType;
(function (CellType) {
    CellType[CellType["grass"] = 0] = "grass";
    CellType[CellType["forest"] = 1] = "forest";
    CellType[CellType["river"] = 2] = "river";
    CellType[CellType["mountain"] = 3] = "mountain";
    CellType[CellType["plain"] = 4] = "plain";
    CellType[CellType["city"] = 5] = "city";
})(CellType || (CellType = {}));
export class MapCell extends Sprite {
    constructor() {
        super();
        this.cell_type = undefined;
        this.cell_render = undefined;
        this.width = MapCellSize;
        this.height = MapCellSize;
    }
    init(cellType) {
        this.texture = LoaderManager.resource[CellType[cellType]].texture;
        this.cell_type = cellType;
    }
}
